package com.caocaog.market.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.caocaog.market.entity.ImagesBanner;
import com.caocaog.market.entity.ImagesCarousel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 轮播图管理
 *
 * @author chechen
 * @date 2021-12-28
 */
public interface ImagesCarouselMapper extends BaseMapper<ImagesCarousel> {

    IPage<ImagesCarousel> queryImagesCarouselPage(Page<ImagesCarousel> page, @Param("imagesCarousel") ImagesCarousel imagesCarousel);

    ImagesCarousel getImagesCarouselByType(int positionType);


    /**
     * 获取全部的轮播图
     * @return 全部的轮播图
     */
    List<ImagesBanner> getImagesCarouse();
}
